import App from "../../App";
import CONNECT_POOL from "../../ConnectPool";
import Program from "../../ConnectPool";
import { Tab } from "../../ui/core/TabBar";
import box from "../../view";
import AppStart from "./AppStart";
import AppStartParser from "./AppStartParser";

export default class AppManagerApp extends App{
    version: string="0.1";
    async onStart() {
        this.page=new AppStart()
        let tabId=box.addNewTab({
            name:'应用管理器',
            page:this.page
        })
        let tab=box.getTab(tabId);
        if(!tab){
            throw new Error("获取标签失败")
        }
        let connectId=await CONNECT_POOL.createConnect((conn)=> new AppStartParser());
    }
}